﻿using System;
using System.Diagnostics;

namespace libmp
{
    public class MovieInfo
    {
        public string name;
        public string key;
        public string id;
        public int timeLength;

        public static MovieInfo Parse(string strInfo)
        {
            var info = strInfo.Split(',');
            info[1] = info[1].Replace("\\", "/");

            MovieInfo mi = new MovieInfo()
            {
                key = info[0],
                name = info[1].Substring(info[1].LastIndexOf("/") + 1),
            };
            return mi;
        }
    }

}